<?php
class Rubicon
{
    static public function arrayMonths($months)
    {
        $today = date('Y-m-d');
        $array_months = array();

        for ($i=$months; $i>0; $i--) :
            $array_months[] = date('n', strtotime(date('Y-m-d').' -'.($i-1).' month'));
        endfor;

        return $array_months;
    }


}

?>
